package com.yfp.client.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 抽奖-奖品配置表
 * @TableName lottery_records_reward
 */
@TableName(value ="lottery_records_reward")
@Data
public class LotteryRecordsReward implements Serializable {
    /**
     * 主键
     */
    @TableId
    private Long id;

    /**
     * lottery_records表id
     */
    @Schema(description = "lottery_records表id")
    private Long lotteryRecordsId;

    /**
     * 兑换奖品类型:[1优惠券、2礼包、3实体商品]
     */
    @Schema(description = "兑换奖品类型:[1优惠券、2礼包、3实体商品]")
    private Integer rewardType;

    /**
     * 奖品id
     */
    @Schema(description = "奖品id")
    private Long rewardId;

    /**
     * 赠券数-发放数量
     */
    @Schema(description = "赠券数-发放数量")
    private Integer distributionQuantity;

    /**
     * 总库存
     */
    @Schema(description = "总库存")
    private Long totalStock;

    /**
     * 剩余库存
     */
    @Schema(description = "剩余库存")
    private Long remainingStock;

    /**
     * 中奖概率
     */
    @Schema(description = "中奖概率")
    private BigDecimal rewardProbability;

    /**
     * 奖品缩略图地址
     */
    @Schema(description = "奖品缩略图地址")
    private String rewardImageUrl;

    @Schema(description = "创建时间")
    private Date createTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}